package com.demo.service;

import com.demo.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenyuan
 * @date 2020/9/21 15:09
 */

public interface UserService {
    List<User> getAllUser();
    User getUserByName(String name);
    void addUser(User user);
    void updateUser(String salt,int id);
    void deleteUser(int id);
    User getUserAndRole(String name);

    void register(User user);
}
